<%-------------------------------------------------------------------
 * 页面名称：batchPeerAccountView.jsp
 * 功能描述：批量支付交易方列表弹出页面
 * Action: 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
    String path = request.getContextPath();
%>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.box {width:100%;margin:auto;}
.off {margin-left:3px;line-height:3 4px;float:left;width:93px;height:34px;color:#003365;font-size:14px;font-weight:bold;text-align:center;background-image:url(<%=path%>/images/p_on.gif);cursor:pointer;}
.on {margin-left:3px;line-height:34px;float:left;width:93px;height:34px;color:#B77443;font-size:14px;font-weight:bold;text-align:center;background-image:url(<%=path%>/images/p_hover.gif);}
.tab {width:100%;margin:auto;float:left;background:url(<%=path%>/images/apply_bg02.gif) top left no-repeat}
-->
</style>
<html:form action="viewBatchPeerAccount">
<html:hidden property="subAccountId"/>
<table border="0" cellpadding="0" cellspacing="0" >
<tr><td>
<div class="tab">
<logic:equal name="batchPeerAccount" property="innerBatchPeerAccount" value="true">
<div class="on">支付账户</div>
</logic:equal>
<logic:equal name="batchPeerAccount" property="innerBatchPeerAccount" value="false">
<div class="on">银行账户</div>
</logic:equal>
</div>
</td></tr>
<tr><td>
<table border="0" cellpadding="5" cellspacing="1" bgcolor="#DDDFDE">
  <tr>
    <td bgcolor="#FFFFFF">
      <logic:equal name="batchPeerAccount" property="innerBatchPeerAccount" value="true">
      <table width="100%" border="0" cellspacing="1" cellpadding="5">
      <tr height="25">
        <th bgcolor="#BFDBF3">账户名称</th>
        <th bgcolor="#BFDBF3">email</th>
        <th bgcolor="#BFDBF3">手机号码</th>
        <th bgcolor="#BFDBF3">金额（元）</th>
        <th bgcolor="#BFDBF3">手续费（元）</th>
      </tr>
      <c:forEach var="record" items="${result.data}" varStatus="status">
      <tr>
        <td bgcolor="#F0F9FE" nowrap><bean:write name="record" property="name" /></td>
        <td bgcolor="#F0F9FE" nowrap><bean:write name="record" property="email" /></td>
        <td bgcolor="#F0F9FE" nowrap><bean:write name="record" property="mobile" /></td>
        <td bgcolor="#F0F9FE" nowrap><ad:FormatPrase><bean:write name="record" property="amount" /></ad:FormatPrase></td>
        <td bgcolor="#F0F9FE" nowrap><ad:FormatPrase><bean:write name="record" property="fee" /></ad:FormatPrase></td>
      </tr>
      </c:forEach>
      </table>
      </logic:equal>
      <logic:equal name="batchPeerAccount" property="innerBatchPeerAccount" value="false">
      <table width="100%" border="0" cellspacing="1" cellpadding="5">
      <tr height="25">
        <th bgcolor="#BFDBF3">姓名</th>
        <th bgcolor="#BFDBF3">银行账号</th>
        <th bgcolor="#BFDBF3">银行名称</th>
        <th bgcolor="#BFDBF3">金额（元）</th>
        <th bgcolor="#BFDBF3">手续费（元）</th>
      </tr>
      <c:forEach var="record" items="${result.data}" varStatus="status">
      <tr>
        <td bgcolor="#F0F9FE" nowrap><bean:write name="record" property="peerName" /></td>
        <td bgcolor="#F0F9FE" nowrap><bean:write name="record" property="cardNo" /></td>
        <td bgcolor="#F0F9FE" nowrap><bean:write name="record" property="bankName" /></td>
        <td bgcolor="#F0F9FE" nowrap><ad:FormatPrase><bean:write name="record" property="amount" /></ad:FormatPrase></td>
        <td bgcolor="#F0F9FE" nowrap><ad:FormatPrase><bean:write name="record" property="fee" /></ad:FormatPrase></td>
      </tr>
      </c:forEach>
      </table>
      </logic:equal>
      <table width="100%" border="0" cellspacing="1" cellpadding="5">
      <tr height="25">
        <td colspan="5" bgcolor="#FFFFFF">
        <ad:PageBean name="result"></ad:PageBean>
        </td>
      </tr>
      <tr height="28" align="center">
        <td bgcolor="#F0F9FE" nowrap align="right">合计：</td>
        <td bgcolor="#F0F9FE" nowrap colspan="2">
              共 <strong><span id="count" style="color:#FF0000;font-size:12px;"><bean:write name="batchPeerAccount" property="count"/></span></strong> 笔<strong>
            <span id="total" style="color:#FF0000;font-size:12px;"><ad:FormatPrase><bean:write name="batchPeerAccount" property="totalAmountWithFee"/></ad:FormatPrase></span></strong> 元
        </td>
        <td bgcolor="#F0F9FE" nowrap>
            <strong><span id="totalAmount"><ad:FormatPrase><bean:write name="batchPeerAccount" property="totalAmountWithoutFee"/></ad:FormatPrase></span></strong>
        </td>
        <td bgcolor="#F0F9FE" nowrap>
            <strong><span id="totalFee"><ad:FormatPrase><bean:write name="batchPeerAccount" property="totalFee"/></ad:FormatPrase></span></strong>
        </td>
      </tr>
      <tr height="28" align="center">
        <td bgcolor="#F0F9FE" nowrap align="right">手续费收取方法：</td>
        <td bgcolor="#F0F9FE" nowrap colspan="4"><bean:write name="feeMode"/></td>
      </tr>
      <tr height="28" align="center">
        <td bgcolor="#F0F9FE" nowrap align="right">付款子账户：</td>
        <td bgcolor="#F0F9FE" nowrap><bean:write name="subAccount" property="accountName"/></td>
        <td bgcolor="#F0F9FE" nowrap align="right">当前余额（元）：</td>
        <td bgcolor="#F0F9FE" nowrap colspan="2"><strong><ad:FormatPrase><bean:write name="subAccount" property="accountBalance.balance" /></ad:FormatPrase></strong></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="41" align="right"><input type="button" value="关 闭" class="graybutton_style" onclick="closePage()" />
      &nbsp;&nbsp;&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>
</table>
</html:form>
<script type="text/javascript">
function closePage(){
    window.parent.hideLayer();
}
window.parent.showLayer(window);
</script>